package main

import (
	"fmt"
	"os/exec"
)

func main() {

	stopCmd := exec.Command("sudo", "service", "php-fpm-74", "reload")
	if err := stopCmd.Run(); err != nil {
		fmt.Println("停止 PHP-FPM 进程失败：", err)
		return
	}

	fmt.Println("PHP-FPM 进程已重启")
}
